package com.xiewenyu.boot.config;

import com.xiewenyu.boot.bean.Pet;
import com.xiewenyu.boot.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;


@Configuration
public class MyConfig {

    @Bean
    public User user(){
        return new User(1,"N","P");
    }

    @Bean
    public Pet pet(){
        return new Pet("Pet");
    }
}
